package com.hengpeng.itfints.config;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.hengpeng.common.config.ConfigManager;
import com.hengpeng.itfints.config.vo.Common;

public class ConfigUtil
{
	private static final Log logger = LogFactory.getLog(ConfigUtil.class);

	/**
	 * <pre>
	 * 获取会员店通用配置
	 * </pre>
	 * @return
	 */
	public static Common getCommon()
	{
		return (Common) ConfigManager.getXmlConfig(PageConfigConstants.MS_STORE_COMMON, Common.class).getConfig();
	}

	/**
	 * <pre>
	 * 根据参数键获取值
	 * </pre>
	 * @param storeId
	 * @param key
	 * @return
	 */
	public static String getParameter(String key)
	{
		return getCommon().getPageConfigMap().get(key);
	}

}
